cmake_minimum_required(VERSION 3.10)

project(yamltest)

add_definitions(-std=c++11)

# 根据自己电脑的yaml-cpp文件安装位置设置yaml-cpp的include路径
include_directories("E:/A_ROBOTLAB/bag/yaml/yaml-cpp/include")
# 设置yaml-cpp静态库的包含路径
link_directories("E:/A_ROBOTLAB/bag/yaml/yaml-cpp/build/Release")

set(SRCS yaml_test.cpp)
add_executable(yamltest ${SRCS})

target_link_libraries(yamltest ${CMAKE_HOME_DIRECTORY}/libs/yaml-cpp.lib)
